<?php
    class Users_Model extends CI_Model{         
        
        function username_check($username){
            $this->db->where('username', $username);
            $query = $this->db->get('users');
            if($query->num_rows()>0){
                return false;
            }
            else{
                return true;
            }
        }
        
        function email_check($email){
            $this->db->where('email', $email);
            $query = $this->db->get('users');
            if($query->num_rows()>0){
                return false;
            }
            else{
                return true;
            }
        }
    }
?>
